/*
 * OPIAM Suite
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */

package opiam.admin.applis.demo.forms;

import org.apache.struts.action.ActionForm;

import java.io.Serializable;


/**
 * This class describes the search formBean.
 */
public class SearchForm extends ActionForm implements Serializable
{
    /** Generic field. */
    private String generic;

    /** Operation filter on the generic. */
    private String generic_op;

    /** First name. */
    private String givenName;

    /** Operation filter on the first name. */
    private String givenName_op;

    /** Last name. */
    private String name;

    /** Operation filter on the last name. */
    private String name_op;

    /** Common name. */
    private String commonName;

    /** Operation filter on the common name. */
    private String commonName_op;

    /** UserId. */
    private String id;

    /** Operation filter on the userId. */
    private String id_op;

    /** Telephone number. */
    private String phone;

    /** Operation filter on the telephone number. */
    private String phone_op;

    /** Department. */
    private String department;

    /** Operation filter on the department. */
    private String department_op;

    /** Site. */
    private String site;

    /** Operation filter on the site. */
    private String site_op;

    /**
     * Gets the department.
     *
     * @return The department.
     */
    public String getDepartment()
    {
        return department;
    }

    /**
     * Sets the department.
     *
     * @param department  The department to set.
     */
    public void setDepartment(String department)
    {
        this.department = department;
    }

    /**
     * Gets the generic field.
     *
     * @return The generic.
     */
    public String getGeneric()
    {
        return generic;
    }

    /**
     * Sets the generic field.
     *
     * @param generic  The generic to set.
     */
    public void setGeneric(String generic)
    {
        this.generic = generic;
    }

    /**
     * Gets the given name.
     *
     * @return The givenName.
     */
    public String getGivenName()
    {
        return givenName;
    }

    /**
     * Sets the given name.
     *
     * @param givenName  The givenName to set.
     */
    public void setGivenName(String givenName)
    {
        this.givenName = givenName;
    }

    /**
     * Gets the user identifier.
     *
     * @return The id.
     */
    public String getId()
    {
        return id;
    }

    /**
     * Sets the user identifier.
     *
     * @param id  The identifier to set.
     */
    public void setId(String id)
    {
        this.id = id;
    }

    /**
     * Gets the name.
     *
     * @return The name.
     */
    public String getName()
    {
        return name;
    }

    /**
     * Sets the name.
     *
     * @param name  The name to set.
     */
    public void setName(String name)
    {
        this.name = name;
    }

    /**
     * Gets the telephone number.
     *
     * @return The phone.
     */
    public String getPhone()
    {
        return phone;
    }

    /**
     * Sets the telephone number.
     *
     * @param phone  The phone to set.
     */
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    /**
     * Gets the site.
     *
     * @return The site.
     */
    public String getSite()
    {
        return site;
    }

    /**
     * Sets the site.
     *
     * @param site  The site to set.
     */
    public void setSite(String site)
    {
        this.site = site;
    }

    /**
     * Gets the operation filter on the first name.
     *
     * @return The operation filter.
     */
    public String getGivenName_op()
    {
        return givenName_op;
    }

    /**
     * Sets the operation filter on the first name.
     *
     * @param givenName_op  The operation filter to set.
     */
    public void setGivenName_op(String givenName_op)
    {
        this.givenName_op = givenName_op;
    }

    /**
     * Gets the operation filter on the user id.
     *
     * @return The operation filter.
     */
    public String getId_op()
    {
        return id_op;
    }

    /**
     * Sets the operation filter on the user id.
     *
     * @param id_op  The operation filter to set.
     */
    public void setId_op(String id_op)
    {
        this.id_op = id_op;
    }

    /**
     * Gets the operation filter on the last name.
     *
     * @return The operation filter.
     */
    public String getName_op()
    {
        return name_op;
    }

    /**
     * Sets the operation filter on the name.
     *
     * @param name_op  The operation filter to set.
     */
    public void setName_op(String name_op)
    {
        this.name_op = name_op;
    }

    /**
     * Gets the operation filter on the commonName.
     *
     * @return The operation filter.
     */
    public String getCommonName_op()
    {
        return commonName_op;
    }

    /**
     * Sets the operation filter on the commonName.
     *
     * @param name_op  The operation filter to set.
     */
    public void setCommonName_op(String name_op)
    {
        this.commonName_op = name_op;
    }

    /**
     * Gets the operation filter on the phone.
     *
     * @return The operation filter.
     */
    public String getPhone_op()
    {
        return phone_op;
    }

    /**
     * Sets the operation filter on the phone.
     *
     * @param phone_op  The operation filter to set.
     */
    public void setPhone_op(String phone_op)
    {
        this.phone_op = phone_op;
    }

    /**
     * Gets the operation filter on the generic field.
     *
     * @return The operation filter.
     */
    public String getGeneric_op()
    {
        return generic_op;
    }

    /**
     * Sets the operation filter on the generic field.
     *
     * @param value  The operation filter to set.
     */
    public void setGeneric_op(String value)
    {
        generic_op = value;
        name_op = value;
        givenName_op = value;
        commonName_op = value;
    }

    /**
     * Reset all the value of the object.
     */
    public void reset()
    {
        generic = null;
        givenName = null;
        name = null;
        commonName = null;
        id = null;
        phone = null;
        department = null;
        site = null;

        generic_op = null;
        givenName_op = null;
        name_op = null;
        commonName_op = null;
        id_op = null;
        phone_op = null;
        department_op = null;
        site_op = null;
    }
}
